[StructLayout(LayoutKind.Sequential)]
public class KBDLLHOOKSTRUCT
{
public UInt32 vkCode;
public UInt32 scanCode;
public UInt32 flags;
public UInt32 time;
public IntPtr dwExtraInfo;
}
<StructLayout(LayoutKind.Sequential)> _
Public Structure KBDLLHOOKSTRUCT
public vkCode As UInt32
public scanCode As UInt32
public flags As UInt32
public time As UInt32
public dwExtraInfo As IntPtr
End Structure
Added by Senthamil.
Changed to class to get the correct marshalling in SetWindowsHookEx